package com.stylefeng.guns.modular.api;

import com.stylefeng.guns.core.base.controller.BaseController;
import com.stylefeng.guns.modular.base.ApiBaseBean;
import com.stylefeng.guns.modular.base.ApiResultBean;
import com.stylefeng.guns.modular.system.transfer.UserDto;
import com.stylefeng.guns.modular.utity.ApiResultFactory;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by fanchengzhi on 2018-08-16.
 */
@RestController
@RequestMapping("/appUserApi")
public class ApiUserController extends BaseController {


    @ApiOperation(value = "用户登陆",notes = "用户端登陆接口",tags = {"用户端"},response = ApiResultBean.class
    )
    @RequestMapping(value = "/login",method = RequestMethod.POST)
    @ResponseBody
    public ApiResultBean auth(@RequestBody ApiBaseBean apiBaseBean, HttpServletRequest request) {
        return ApiResultFactory.toSuccess("成功", "sss");
    }
}
